home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 #2 / K-CD-2-2004.ISO / Fire Chief / data1.cab / Program_Executable_Files / Logic / tools / WaitingFunc.scp < prev   
Encoding:
Text File  |  2003-05-28  |  922 b   |  74 lines

  1.  
  2. s32 Wait( f32 Time )
  3. {
  4.     f32 CurrentTime;
  5.     CurrentTime = 0.0;
  6.  
  7.     while( CurrentTime < Time )
  8.     {
  9.         f32 dt;
  10.         dt = GetDT();    
  11.         CurrentTime = CurrentTime + dt;
  12.         WaitTrame();
  13.     }
  14.  
  15.     return 1;
  16. }
  17.  
  18.  
  19. s32 CamWaitTransition()
  20. {
  21.     s32 TransitionDone;
  22.     TransitionDone = 0;
  23.     
  24.     while( TransitionDone == 0 )
  25.     {
  26.         TransitionDone = CamTransitionDone();
  27.         WaitTrame();
  28.     }
  29.  
  30.     return 1;
  31. }
  32.  
  33. s32 CamWaitRotation()
  34. {
  35.     s32 RotationDone;
  36.     RotationDone = 0;
  37.     
  38.     while( RotationDone == 0 )
  39.     {
  40.         RotationDone = CamRotationDone();
  41.         WaitTrame();
  42.     }
  43.  
  44.     return 1;
  45. }
  46.  
  47. s32 CamWaitMovement( s32 WPID )
  48. {
  49.     s32 MovementDone;
  50.     MovementDone = 0;
  51.     
  52.     while( MovementDone == 0 )
  53.     {
  54.         MovementDone = CamMovementDone( WPID );
  55.         WaitTrame();
  56.     }
  57.  
  58.     return 1;
  59. }
  60.  
  61. s32 CamWaitStep()
  62. {
  63.     s32 StepDone;
  64.     StepDone = 0;
  65.     
  66.     while( StepDone == 0 )
  67.     {
  68.         StepDone = CamStepDone();
  69.         WaitTrame();
  70.     }
  71.  
  72.     return 1;
  73. }
  74.